﻿<Application
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:SampleData="clr-namespace:Expression.Blend.SampleData.SampleDataSource"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:Providers="clr-namespace:SilverBox.Logging.Providers;assembly=SilverBox"
    xmlns:Log="clr-namespace:SilverBox.Demo.Log"
    xmlns:Listeners="clr-namespace:SilverBox.Logging.Listeners;assembly=SilverBox"
    xmlns:Services="clr-namespace:SilverBox.Services;assembly=SilverBox"
    xmlns:Logger="clr-namespace:SilverBox.Logging;assembly=SilverBox"
  x:Class="SilverBox.Demo.App"
  mc:Ignorable="d">

    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Assets/Styles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
            <SampleData:SampleDataSource x:Key="SampleDataSource" d:IsDataSource="True"/>
        </ResourceDictionary>
    </Application.Resources>
    <Application.ApplicationLifetimeObjects>
        <Services:LoggerService>
            <Logger:LoggerCollection>
                <Logger:Logger>
                    <Logger:Logger.Listeners>
                        <Listeners:ListenerCollection>
                            <Log:MyEntryListener />
                        </Listeners:ListenerCollection>
                    </Logger:Logger.Listeners>
                    <Providers:ProviderCollection>
                        <Providers:TextLoggerProvider />
                    </Providers:ProviderCollection>
                </Logger:Logger>
            </Logger:LoggerCollection>
        </Services:LoggerService>
    </Application.ApplicationLifetimeObjects>
</Application>